#include "Squared.h"

Squared::Squared(void)
: X(0)
, Y(0)
, ord_number(0)
, SpeedX(0)
, SpeedY(0)
, done(false)
{
}

Squared::~Squared(void)
{
}

int Squared::move_step(void)
{
	if(!done)
	{
		int MAX_Y = 191;
		int MAX_X = 255;

		X = (X + SpeedX)%MAX_X;
		Y = (Y + SpeedY)%MAX_Y;
		return 0;
	}
}

int Squared::stop(void)
{
	done = true;
}